﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/masAdmin.master" ValidateRequest="false"
    AutoEventWireup="true" CodeFile="OrderAdd.aspx.cs" Inherits="admin_OrderAdd" %>

<%@ Import Namespace="CommonTagTime" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagename" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
  <!-- calendar stylesheet -->
    <link rel="stylesheet" type="text/css" media="all" href="../scripts/jscalendar-1.0/calendar-win2k-cold-1.css"
        title="win2k-cold-1" />
    <!-- main calendar program -->
    <script type="text/javascript" src="../scripts/jscalendar-1.0/calendar.js"></script>
    <!-- language for the calendar -->
    <script type="text/javascript" src="../scripts/jscalendar-1.0/lang/calendar-en.js"></script>
    <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
    <script type="text/javascript" src="../scripts/jscalendar-1.0/calendar-setup.js"></script>
    <div class="content-box-header">
        <h3>Đơn hàng tổng quát</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <table border="0" cellpadding="0" cellspacing="0" class="table100">
                <tr>
                    <td colspan="2">
                        <span class="commentRequireInputText">
                            <%=Resources.Resource.LBL_REQUIREMENT%>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="left">
                        <asp:ValidationSummary ID="vsumTipNew" runat="server" ShowMessageBox="true" ShowSummary="false"
                            CssClass="errorMessage" />
                        <asp:Label ID="lblErrorMessage" runat="server" CssClass="errorMessage"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Tracking Order (<span class="commentRequireInputText">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtTrackingOrder" MaxLength="255" Width="200px" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqTrackingOrder" runat="server" EnableClientScript="true" CssClass="errorMessage" ErrorMessage="TrackingOrder bắt buộc nhập" Display="Dynamic" ControlToValidate="txtTrackingOrder">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                       Purchase Order (<span class="commentRequireInputText">*</span>):
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtPurchaseOrder" MaxLength="255" Width="200px" runat="server" TextMode="SingleLine"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="req" runat="server" EnableClientScript="true" CssClass="errorMessage" ErrorMessage="Purchase Order bắt buộc nhập" Display="Dynamic" ControlToValidate="txtPurchaseOrder">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                       Khách hàng (<span class="commentRequireInputText">*</span>):
                    </td>
                    <td colspan="3">
                        <asp:DropDownList ID="drpCustomer" Width="200px" runat="server"></asp:DropDownList>
                        <asp:RequiredFieldValidator ID="reqCustomer" runat="server" EnableClientScript="true" CssClass="errorMessage" ErrorMessage="Khách hàng bắt buộc nhập" Display="Dynamic" ControlToValidate="drpCustomer">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Dự kiến giao hàng:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtFinishDate" Width="120px" runat="server"></asp:TextBox>
                        <input type="button" value="+" style="height: 21px; cursor: pointer;" id="selectStartDate" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="height: 40px;" valign="bottom">
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" OnClick="btnSave_Click"
                            CausesValidation="true" />
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="Cancel" OnClick="btnCancel_Click"
                            CausesValidation="false" />
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <script type="text/javascript">
        Calendar.setup({
            inputField: '<%=txtFinishDate.ClientID %>',     // id of the input field
            ifFormat: "%m/%d/%Y",      // format of the input field
            button: "selectStartDate",  // trigger for the calendar (button ID)
            align: "Tl",           // alignment (defaults to "Bl")
            singleClick: true
        });

    </script>
</asp:Content>
